package com.study.manage.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.study.manage.domain.enumm.ReleaseState;
import com.study.manage.domain.enumm.YesNoState;

@SuppressWarnings("serial")
@Entity
@Table(name = "sa_activity")
public class Activity extends AbstractEntity implements Serializable {

    public Long adminId;
    public Date beginTime;
    public Date endTime;
    public Date applyEndTime;
    public String bannerUrl;
    public String region;
    public Integer applyCount;
    public YesNoState verify = YesNoState.NO;
    @Column(columnDefinition = "tinyint")
    public Integer hasImg = 0;
    @Column(columnDefinition = "tinyint")
    public Integer hasVideo = 0;
    public String text;
    public String result;
    public String labels;
    public ReleaseState state = ReleaseState.Release;

    public Activity() {}

    public Activity(Long id) {
        this.id = id;
    }
}
